Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Print  a  Excel  Sheet  

 Content of Print a Excel Sheet.vbs
MD5 Hash: 3AE537BA3F1A408C5A94B22339FAFFE0
' Print a Excel Sheet
' ------------------------ Excel Output
Dim oExcel, oSheet


Call Init_XLS()

oSheet.Cells(1,1).Value = "This is a Test Print"
oSheet.PrintOut

Call Close_XLS()



'-------------
Sub Init_XLS()

Set oExcel = CreateObject("Excel.application")
oExcel.Visible = False
oExcel.Workbooks.add

Set oSheet = oExcel.ActiveWorkbook.Worksheets(1)
oSheet.Name = "TestPage"

oExcel.Worksheets(3).Delete
oExcel.Worksheets(2).Delete

oExcel.DisplayAlerts = False

End Sub


'--------------
Sub Close_XLS()

oExcel.ActiveWorkbook.Close False
oExcel.Quit

set oSheet = Nothing
Set oExcel = Nothing

End Sub

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a